﻿
using System;

namespace SimpleStore
{
	public class Product
	{
		private string _name;
		//private double _price;
		
		#region Properties
		public string Name {
			get { return _name; }
			set { _name = value; }
		}
		
		public double Price {
			get;
			set;
		}
		#endregion
		
		#region Constructors
		public Product() {}
		
		public Product(string name, double price)
		{
			_name = name;
			Price = price;
		}
		#endregion
		
		public double GetPriceWithTax(TaxCalculator taxCalculator) {
			return Price + taxCalculator.CalculateTaxAmount(Price);
		}
	}
}
